#!/bin/sh /etc/rc.common
# Copyright (C) 2010 OpenWrt.org

START=90

SERVICE_DAEMONIZE=1
APP_BIN="/usr/sbin/skyqos"

start() {
if [ -n "$1" ];then
        service_start $APP_BIN $1  
else    
        ebtables -N wifi -P RETURN
        ebtables -N siptv -P RETURN
        ebtables -A OUTPUT -j wifi
        ebtables -A FORWARD -j wifi
        ebtables -A OUTPUT -j siptv    
        service_start $APP_BIN all
fi
}


